package com.catering.mapper;

import com.catering.domain.Table;

import java.util.Date;
import java.util.List;

/**
* @author 24966
* @description 针对表【table】的数据库操作Mapper
* @createDate 2024-10-18 11:20:48
* @Entity com.catering.domain.Table
*/
public interface TableMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Table record);

    int insertSelective(Table record);

    Table selectByPrimaryKey(Long id);
    //修改

    int updateByPrimaryKeySelective(Table record);

    int updateByPrimaryKey(Table record);
   //查询所有
    List<Table> selectAll();
    //模糊查询
    List<Table> selLike(String location);

//根据桌号修改桌台状态
    int updateStausIdToOneById(Long id);
    int updateStausIdToTwoById(Long id);
    int updateStausIdToThreeById(Long id);

    //查询总条数
    int queyCountTable();




}
